#include "shmget.hpp"
int main()
{
    int key = Get_key();
    int shmid = Get_Shm(key);
    char* buffer = (char*)At_Shm(shmid);
    while(true)
    {
        cout << "对方发送消息->" << buffer << endl;
        sleep(2);
    }
    detach_Shm(buffer);
    return 0;
}